Class FeaturePolicy

Summary

Fully Qualified Name: Laminas\Http\Header\FeaturePolicy
Implements: HeaderInterface

Description

Feature Policy (based on Editor’s Draft, 28 November 2019)

Methods

Name Description Defined By
fromString() Create Feature Policy header from a given header line FeaturePolicy
getDirectives() Get the list of defined directives FeaturePolicy
getFieldName() Get the header name FeaturePolicy
getFieldValue() Get the header value FeaturePolicy
setDirective() Sets the directive to consist of the source list FeaturePolicy
toString() Return the header as a string FeaturePolicy

Method Details

fromString()

Create Feature Policy header from a given header line

Parameter Name Type Description
$headerLine string The

Returns: static

getDirectives()

Get the list of defined directives

Returns: array

getFieldName()

Get the header name

Returns: string

getFieldValue()

Get the header value

Returns: string

setDirective()

Sets the directive to consist of the source list

Parameter Name Type Description
$name string The
$sources string[] The

Returns: $this

toString()

Return the header as a string

Returns: string

Top